<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>事件策略模板</title>
    <meta name="decorator" content="nblank"/>
</head>
<body>
<div class="content container">
    <h2 class="page-title">事件策略模板
        <small>&nbsp;&nbsp;模板子项展示</small>
    </h2>
    <section class="widget widget-tabs widget-table-overflow ">
        <header>
            <ul class="nav nav-tabs">
                <li><a href="${ctx}/biz/et">模板列表</a></li>
                <li class="active"><a href="javascript:;">${eventTemplate.name}模板子项展示</a>
                <li><a href="${ctx}/biz/eti/form?eventTemplateId=${eventTemplate.id}">${eventTemplate.name}模板子项新增</a>
            </ul>
        </header>
        <div class="body tab-content">
            <table id="contentTable" class="table table-striped table-condensed">
                <tr>
                    <th>参数</th>
                    <th>条件</th>
                    <th>时间</th>
                    <th>级别</th>
                    <th>描述</th>
                    <th>操作</th>
                </tr>
                <c:forEach items="${list}" var="eventTemplateItem">
                    <tr>
                        <td>${eventTemplateItem.param.name}</td>
                        <td>${fns:getDictLabels(eventTemplateItem.comparisonOperator1, "comparison_operator", "")}${eventTemplateItem.operand1}&nbsp;${fns:getDictLabels(eventTemplateItem.relationOperator, "relation_operator", "")}&nbsp;${fns:getDictLabels(eventTemplateItem.comparisonOperator2, "comparison_operator", "")}${eventTemplateItem.operand2}</td>
                        <td>${eventTemplateItem.timeBegin}&nbsp;--&nbsp;${eventTemplateItem.timeEnd}</td>
                        <td>${fns:getDictLabels(eventTemplateItem.level, "event_level", "")}</td>
                        <td>${eventTemplateItem.remarks}</td>
                        <td>
                            <a href="${ctx}/biz/eti/form?id=${eventTemplateItem.id}&eventTemplateId=${eventTemplate.id}">修改</a>
                            <a href="${ctx}/biz/eti/delete?id=${eventTemplateItem.id}&eventTemplateId=${eventTemplate.id}" class="no-pjax" onclick="confirmx('确认删除该模板吗?',this.href);return false;">删除</a>
                        </td>
                    </tr>
                </c:forEach>
            </table>
        </div>
    </section>
</div>
</body>
</html>